﻿using System;
using System.Collections.Generic;
using System.Text;
using Pixysoft.Framework.Sockets.Controller;

namespace Pixysoft.Framework.Sockets.Core
{
    class ConnectionTimeoutTrigger : BaseTrigger
    {
        public override void Run(object state, bool timeOut)
        {
            if (IsDisposed)
                return;

            if (!IsRunning)
                return;

            LoggerHelper.Debug("begin check timeout connection.");

            SessionPoolController.Instance.RemoveTimeoutSession();
        }
    }
}
